(function() {
	const response = {
		"type": "page",
		"body": [
			{
				"type": "panel",
				"title": "Form+chart组合",
				"body": [
					{
						"type": "form",
						"title": "过滤条件",
						"target": "chart1,chart2",
						"submitOnInit": true,
						"className": "m-b",
						"wrapWithPanel": false,
						"mode": "inline",
						"body": [
							{
								"type": "input-date",
								"label": "开始日期",
								"name": "starttime",
								"value": "-8days",
								"maxDate": "${endtime}"
							},
							{
								"type": "input-date",
								"label": "结束日期",
								"name": "endtime",
								"value": "-1days",
								"minDate": "${starttime}"
							},
							{
								"type": "input-text",
								"label": "条件",
								"name": "name",
								"addOn": {
									"type": "submit",
									"label": "搜索",
									"level": "primary"
								}
							}
						],
						"actions": []
					},
					{
						"type": "divider"
					},
					{
						"type": "grid",
						"className": "m-t-lg",
						"columns": [
							{
								"type": "chart",
								"name": "chart1",
								"initFetch": false,
								"api": "/amis/api/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"
							},
							{
								"type": "chart",
								"name": "chart2",
								"initFetch": false,
								"api": "/amis/api/mock2/chart/chart2?name=$name"
							}
						]
					}
				]
			},
			{
				"type": "crud",
				"title": "",
				"api": "/amis/api/sample/list",
				"columnsTogglable": false,
				"columns": [
					{
						"name": "id",
						"label": "ID",
						"width": 20,
						"type": "text"
					},
					{
						"name": "engine",
						"label": "Rendering engine",
						"type": "text",
						"popOver": {
							"trigger": "hover",
							"showIcon": false,
							"body": "Popover 内容：${platform}",
							"popOverClassName": "min-w-0",
							"position": "left-center-right-center right-center-left-center"
						}
					},
					{
						"name": "browser",
						"label": "Browser",
						"type": "text"
					}
				]
			}
		]
	}

	window.jsonpCallback && window.jsonpCallback(response);
})();
